#include <iostream>
#include "UdpServer.hpp"

int main(int argc,char* argv[])
{
    if(argc<2)
    {
        //LOG(Level::FATAL)<<"input error";
        std::cerr<<"Usage"<<argv[0]<<"port"<<std::endl;
        return 1;
    }
    std::string port = argv[1];

    UdpServer us(std::stoi(port));
    us.Init();
    us.Start();
    return 0;
}